package nav

type NavResponse struct {
	Title string `json:"title"`
	Sort  int `json:"sort"`
	Cov   string `json:"cov"`
}

func NewNav(attrs ...NavFunc) *NavResponse {
	navFuncs := (NavFuncs)(attrs)
	nav := NewNavResponse()
	navFuncs.apply(nav)
	return nav
}
